package com.github.itdachen.product.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import jakarta.persistence.Column;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;



/**
 * 产品类目
 *
 * @author 王大宸
 * @date 2025-03-04 15:48:47
 */
@Table(name = "fly_shop_product_clazz_info")
public class ProductClazzInfo implements Serializable{
private static final long serialVersionUID=1L;

    /** 主键唯一标识 */
    @Id
    @Column(name = "id")
    private String id;

    /** 应用ID, 备用字段 */
    @Column(name = "app_id")
    private String appId;

    /** 租户ID */
    @Column(name = "tenant_id")
    private String tenantId;

    /** 第一层ID */
    @Column(name = "root_id")
    private String rootId;

    /** 上级ID */
    @Column(name = "parent_id")
    private String parentId;

    /** 分类层级, 最多三级 */
    @Column(name = "clazz_level")
    private String clazzLevel;

    /** 标题名称 */
    @Column(name = "clazz_title")
    private String clazzTitle;

    /** 图标 */
    @Column(name = "clazz_icon")
    private String clazzIcon;

    /** 排序 */
    @Column(name = "sort_num")
    private String sortNum;

    /** 是否展示/有效标志: Y-有效;N-无效 */
    @Column(name = "valid_flag")
    private String validFlag;

    /** 备注 */
    @Column(name = "remarks")
    private String remarks;

    /** 删除标志: Y-已删除;N-未删除 */
    @Column(name = "remove_flag")
    private String removeFlag;

    /** 创建者 */
    @Column(name = "create_user")
    private String createUser;

    /** 创建者ID */
    @Column(name = "create_user_id")
    private String createUserId;

    /** 创建时间 */
    @Column(name = "create_time")
    private LocalDateTime createTime;

    /** 更新者 */
    @Column(name = "update_user")
    private String updateUser;

    /** 更新时间 */
    @Column(name = "update_time")
    private LocalDateTime updateTime;

    /** 更新者ID */
    @Column(name = "update_user_id")
    private String updateUserId;





            public void setId(String id) {
                this.id = id;
            }

            public String getId() {
                return id;
            }

            public void setAppId(String appId) {
                this.appId = appId;
            }

            public String getAppId() {
                return appId;
            }

            public void setTenantId(String tenantId) {
                this.tenantId = tenantId;
            }

            public String getTenantId() {
                return tenantId;
            }

            public void setRootId(String rootId) {
                this.rootId = rootId;
            }

            public String getRootId() {
                return rootId;
            }

            public void setParentId(String parentId) {
                this.parentId = parentId;
            }

            public String getParentId() {
                return parentId;
            }

            public void setClazzLevel(String clazzLevel) {
                this.clazzLevel = clazzLevel;
            }

            public String getClazzLevel() {
                return clazzLevel;
            }

            public void setClazzTitle(String clazzTitle) {
                this.clazzTitle = clazzTitle;
            }

            public String getClazzTitle() {
                return clazzTitle;
            }

            public void setClazzIcon(String clazzIcon) {
                this.clazzIcon = clazzIcon;
            }

            public String getClazzIcon() {
                return clazzIcon;
            }

            public void setSortNum(String sortNum) {
                this.sortNum = sortNum;
            }

            public String getSortNum() {
                return sortNum;
            }

            public void setValidFlag(String validFlag) {
                this.validFlag = validFlag;
            }

            public String getValidFlag() {
                return validFlag;
            }

            public void setRemarks(String remarks) {
                this.remarks = remarks;
            }

            public String getRemarks() {
                return remarks;
            }

            public void setRemoveFlag(String removeFlag) {
                this.removeFlag = removeFlag;
            }

            public String getRemoveFlag() {
                return removeFlag;
            }

            public void setCreateUser(String createUser) {
                this.createUser = createUser;
            }

            public String getCreateUser() {
                return createUser;
            }

            public void setCreateUserId(String createUserId) {
                this.createUserId = createUserId;
            }

            public String getCreateUserId() {
                return createUserId;
            }

            public void setCreateTime(LocalDateTime createTime) {
                this.createTime = createTime;
            }

            public LocalDateTime getCreateTime() {
                return createTime;
            }

            public void setUpdateUser(String updateUser) {
                this.updateUser = updateUser;
            }

            public String getUpdateUser() {
                return updateUser;
            }

            public void setUpdateTime(LocalDateTime updateTime) {
                this.updateTime = updateTime;
            }

            public LocalDateTime getUpdateTime() {
                return updateTime;
            }

            public void setUpdateUserId(String updateUserId) {
                this.updateUserId = updateUserId;
            }

            public String getUpdateUserId() {
                return updateUserId;
            }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                    .append("id", getId())
                    .append("appId", getAppId())
                    .append("tenantId", getTenantId())
                    .append("rootId", getRootId())
                    .append("parentId", getParentId())
                    .append("clazzLevel", getClazzLevel())
                    .append("clazzTitle", getClazzTitle())
                    .append("clazzIcon", getClazzIcon())
                    .append("sortNum", getSortNum())
                    .append("validFlag", getValidFlag())
                    .append("remarks", getRemarks())
                    .append("removeFlag", getRemoveFlag())
                    .append("createUser", getCreateUser())
                    .append("createUserId", getCreateUserId())
                    .append("createTime", getCreateTime())
                    .append("updateUser", getUpdateUser())
                    .append("updateTime", getUpdateTime())
                    .append("updateUserId", getUpdateUserId())
                .toString();
    }


}
